package com.xbongbong.pro.formdata.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/7/4 9:56
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FieldExistDataDTO extends BaseDTO {
    private static final long serialVersionUID = -7321065173551457852L;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.fieldExistData.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.fieldExistData.saasMark.NotNull}")
    private Integer saasMark;


    private Integer businessType;

    @NotEmpty(message = "{dto.msg.fieldExistData.attr.NotEmpty}")
    private String attr;
    @NotNull(message = "{dto.msg.fieldExistData.fieldType.NotNull}")
    private Integer fieldType;

    private String subAttr;

    public FieldExistDataDTO() {
        subAttr = "";
    }
}
